<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('fnryqk列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                          <ul>
                          <!--  <li>
                                 <label>人员id：</label>
                                 <input type="text" name="userid"/>
                             </li>
                             <li>
                                 <label>科室id：</label>
                                 <input type="text" name="keshiid"/>
                             </li>-->
                              <li>
                                  <label>姓名：</label>

                                  <input type="text" name="name"/>

                              </li>
                             <li>
                                 <label>科室名称：</label>

                                 <input type="text" name="keshiname"/>

                             </li>
                             <li>
                                 <label>返宁时间：</label>

                                 <input type="text" class="time-input" placeholder="请选择返宁时间开始" name="fanningtime1"/>
                                 <input type="text" class="time-input" placeholder="请选择返宁时间结束" name="fanningtime2"/>

                             </li>
                            <!-- <li>
                                 <label>交通方式：</label>
                                 <input type="text" name="jiaotongfangshi"/>
                             </li>-->
                             <li>
                                 <label>人员类别：</label>
                                <!-- <input type="text" name="renyuanleibie"/>-->

                                     <select name="renyuanleibie" >
                                         <option value="">--请选择--</option>
                                         <option value="1">干部</option>
                                         <option value="2">柿饼</option>
                                         <option value="3">文职</option>
                                         <option value="4">职工</option>
                                         <option value="5">聘用制</option>
                                         <option value="6">博士后</option>
                                         <option value="7">劳务派遣</option>
                                         <option value="8">进修（实习）生</option>
                                         <option value="9">零时工</option>
                                         <option value="10">其他</option>
                                     </select>

                             </li>
                             <!-- <li>
                                  <label>健康码颜色：</label>
                                  <input type="text" name="yanse"/>
                              </li>
                               <li>
                                   <label>电话：</label>
                                   <input type="text" name="dianhua"/>
                               </li>
                               <li>
                                   <label>创建时间：</label>
                                   <input type="text" class="time-input" placeholder="请选择创建时间" name="chuangjiantime"/>
                               </li>
                              <li>
                                  <label>备注：</label>
                                  <input type="text" name="beizhu"/>
                              </li>-->
                              <li>
                                  <label>状态：</label>

                                      <select name="status" >
                                          <option value="">--请选择--</option>
                                          <option value="1">有效</option>
                                          <option value="0">失效</option>
                                      </select>

                              </li>
                             <!-- <li>
                                  <label>备注1：</label>
                                  <input type="text" name="text1"/>
                              </li>
                              <li>
                                  <label>备注2：</label>
                                  <input type="text" name="text2"/>
                              </li>
                              <li>
                                  <label>备注3：</label>
                                  <input type="text" name="text3"/>
                              </li>-->
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
               <!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:fnryqk:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:fnryqk:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:fnryqk:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>-->
                <a class="btn btn-warning" onclick="$.table.exportExcel()">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:fnryqk:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:fnryqk:remove')}]];
        var prefix = ctx + "system/fnryqk";

        $(function() {
            var options = {
                url: prefix + "/customlist",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "fnryqk",
                columns: [{
                    checkbox: true
                },
                /*{
                    field: 'id',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'userid',
                    title: '人员id',
                    visible: false
                },
                {
                    field: 'keshiid',
                    title: '科室id',
                    visible: false
                },*/
                    {
                        field: 'truename',
                        title: '姓名'
                    },
                {
                    field: 'keshiname',
                    title: '科室'
                },

                {
                    field: 'fanningshijian',
                    title: '返宁时间',
                    sortable: true
                },
                    {
                        field:'fnd' ,
                        title: '由何地返宁'
                    },
                {
                    field: 'jiaotongfangshi',
                    title: '返宁交通方式'
                },

                   {
                         field: 'zgd',
                         title: '途径中高风险地区情况'
                     },

                {
                    field: 'leibiename',
                    title: '人员类别'
                },
                {
                    field: 'yanse',
                    title: '健康码颜色'
                },
                {
                    field: 'dianhua',
                    title: '联系方式（手机长号）'
                },
               /* {
                    field: 'chuangjiantime',
                    title: '创建时间',
                    visible: false
                },*/
                {
                    field: 'beizhu',
                    title: '备注'
                },
               {
                    field: 'zhuangtai',
                    title: '状态',

                },
                    /*{
                       field: 'text1',
                       title: '备注1',
                       visible: false
                   },
                   {
                       field: 'text2',
                       title: '备注2',
                       visible: false
                   },
                   {
                       field: 'text3',
                       title: '备注3',
                       visible: false
                   },*/

                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\',\'edit\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>